package com.itany.dao;

import com.itany.pojo.User;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by tyh on 2018/9/22.
 */
@Repository
public interface UserMapper {

    List<User> findUserAll();


    User login(User user);


    /**
     * 插入用户
     *
     * @param user
     */
    void insertUser(User user);


    /**
     * 根据手机号查找用户
     *
     * @param phone 手机号
     * @return
     */
    User selectByPhone(String phone);
}
